<?php
require_once( 'Zend/Db.php' );
require_once( 'Zend/Db/Table.php' );
require_once( 'Zend/Db/Table/Abstract.php' );

class MED_USER extends Zend_Db_Table_Abstract
{
    protected $_name = 'MED_USER';
    
    public function insUsuarios() {
    	$data = array('USER_NAME' => $this->usrname,
					  'USER_DNI' => $this->dni,   
					  'USER_PASS' => $this->clave,   
        			  'USER_PRIVILEGES' => $this->privilegios);
        	
        try {
        	$result = $this->insert($data);
		} 
		catch (Exception $e) {
			return 0;
		}

        return 1;
   
    }
}
